package com.mrma.utils.generate.main;

import java.sql.SQLException;

import com.mrma.utils.generate.factory.AutoGenerationCodeTool;
import com.mrma.utils.generate.factory.BeanProperties;
import com.mrma.utils.generate.util.ConnectionUtil;


public class CreateCodeMain {

	/**
	 * @param  args
	 * @throws SQLException 
	 * @author wzw
	 */
	public static void main(String[] args) {

		BeanProperties.setPackage("com.mrma");//包名
		BeanProperties.setTableName("test");//数据库表名
		BeanProperties.setSchema("life");//数据库名称
 		BeanProperties.setPath("E:\\JAVA_Project\\FMP\\COMMON");//生成的类存放的路径
 		BeanProperties.setAuthor("mrma");//代码生成者
		ConnectionUtil.dbUrl = "jdbc:mysql://47.103.92.24:3306/life?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8";
		ConnectionUtil.theUser = "root";//数据库登录用户
		ConnectionUtil.thePw = "123456";//数据库登录用户密码
		//生成代码
		new AutoGenerationCodeTool().createCode();

	}

}
